{% set renderedType = render_type(prototype.returnType.type) %}
{% if prototype.docblock.notNone %}
/**
{% for line in prototype.docblock.asLines %}
 * {{ line|raw }}
{% endfor %}
 */
{% endif %}
{% if prototype.isAbstract %}abstract {%endif %}{{ prototype.visibility }} {% if prototype.isStatic %}static {%endif %}function {{ prototype.name}}({% for parameter in prototype.parameters %}{{ generator.render(parameter, variant)|raw }}{% if not loop.last %}, {% endif %}{% endfor %}){% if renderedType %}: {{ renderedType }}{% endif %}
